<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>{&SITE_TITLE}</title>
	<link href="__PUBLIC__/admin/css/layout.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
	<script type="text/javascript">
		var ctrl = function(name){
			this.elements = document.getElementsByName('id[]');
			this.length = this.elements.length;
		}
		ctrl.prototype = {
			reverse:function(){
				for(i=0;i<this.length;i++){
					this.elements[i].checked= !this.elements[i].checked;
				}
			},
			all:function(){
				for(i=0;i<this.length;i++){
					this.elements[i].checked = true;
				}
			},
			unAll:function(){
				for(i=0;i<this.length;i++){
					this.elements[i].checked = false;
				}
			},
			toggle:function(obj){
				this[obj.checked ? 'all' : 'unAll']();
			},
			del:function(id){
				if(confirm("此节点删除后,连同子节点一同删除,你是否确认删除?")){
					if(confirm("请您再次确认是否真要删除?")){
						location.href = "__URL__/delnode/id/"+id;
					}else{
						return false;
					}
				}else{
					return false;
				}
				
			},
			edit:function(id){
				location.href = "__URL__/editnode/id/"+id;
			}
		}
		var c = null;
		
		function changetype(o){
			location.href = "__URL__/node/type/"+o.value;
		}
	</script>
    
	</head>
	<body>
		<div id="container">
			<table class="tableborder" width="100%">
				<tbody>
					<tr class="top">
						<td class="border"></td>
					</tr>
					<tr>
						<th class="header">tips</th>
					</tr>
					<tr>
						<td class="tips">
							<ul>
								<li>ThinkSnS系统后台权限配置 - 菜单管理</li>
								<li><select name="type" onchange="changetype(this)">
										<option value="admin" <eq name="type" value="admin">selected</eq> >后台节点配置</option>
										<option value="guest" <eq name="type" value="guest">selected</eq> >前台游客配置</option>
									</select>
								</li>
							</ul>
						</td>
					</tr>
					<tr class="bottom">
						<td class="border" colspan="5">&nbsp;</td>
					</tr>
				</tbody>
			</table>
			{$operateModel}
		</div>
		<script type="text/javascript">
			c = new ctrl('id[]');
		</script>
	</body>
</html>
